package org.catdroid.bomba.classes;

/**
 * Class that implements the player entity
 * @author oriol
 *
 */
public class Player {

	private String id;
	private String name;
	private int score;
	private boolean ready;

	public void setReady(boolean ready) {
		this.ready = ready;
	}

	public Player(){

	}
	
	public Player(String id, String name, int score, boolean ready) {
		super();
		this.id = id;
		this.name = name;
		this.score = score;
		this.ready = ready;
	}
	public boolean isReady() {
		return ready;
	}
	public Player(String id, String name, int score) {
		super();
		this.id = id;
		this.name = name;
		this.score = score;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	
	@Override
	public String toString() {
		String cadena = "";
		
		cadena = id+name+Integer.toString(score)+Boolean.toString(ready);
		
		return cadena;
	}
}
